/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const newsRouter = {
  path: '/news',
  component: Layout,
  redirect: '/news/index',
  name: 'News',
  meta: {
    title: '通知管理',
    icon: 'table'
  },
  children: [
    {
      path: '/news/index',
      component: () => import('@/pages/news/index'),
      name: 'IndexTable',
      meta: { title: '通知管理', icon: 'table' }
    },
    {
      path: '/news/add',
      component: () => import('@/pages/news/add'),
      name: 'NewsTable',
      meta: { title: '新增', icon: 'table' }
    }

  ]
}
export default newsRouter
